package sdc.com.petscalendar.fragments;

import sdc.com.petscalendar.MainActivity;
import android.support.v4.app.Fragment;
import android.view.View;
import android.view.ViewGroup;

public class BaseFragment extends Fragment{
	protected View mView;
	
	
	
	public void setTile(String title){
		((MainActivity)getActivity()).setTile(title);
	}


	
	@Override
	public void onDestroyView() {
		if (mView != null) {
			((ViewGroup) getView().getParent()).removeView(mView);
			mView = null;
		}
		super.onDestroyView();
	}
}
